Because java uses the concept of string literal. Suppose there are 5 reference variables,all referes to one object "sachin".If one reference variable changes the value of the object, it will be affected to all the reference variables. That is why string objects are immutable in java.
Liked By
Write Answer
Why string objects are immutable in java?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
25-Apr-2015